<form id="deptForm" method="post">
	<table class="formTable">
		<tr>
			<td class="table_left"><font color="red">*</font>部门名称：</td>
			<td>
				<input name="deptName" data-options="required:true,width: 200,prompt:'部门名称'" type="text" class="easyui-textbox"/> 
			</td>
			<td class="table_left">部门电话：</td>
			<td><input name="deptPhone" type="text" class="easyui-textbox" data-options="width: 200,prompt:'部门电话'"/></td>
		</tr>
		<tr>
			<td class="table_left"><font color="red">*</font>类型：</td>
			<td><select name="deptType" id="type"></select></td>
		<td class="table_left">上级部门：</td>
			<td><select name="parentId" id="parentId"></select></td>
		</tr>
		<tr>
			<td class="table_left">部门地址：</td>
			<td><input name="deptAddress" data-options="width: 200,prompt:'部门详细地址'" type="text" class="easyui-textbox"/></td>
			<td class="table_left">描述：</td>
			<td>
				<input class="easyui-textbox" name="remark" data-options="multiline:true,prompt:'描述'" value="" style="width:250px;height:80px">
			</td>
		</tr>
	</table>
</form>
<script type="text/javascript">
JSmile.KEasy.initForm("#deptForm","/sys_dept/save"); 
$('#type').combobox({
	url:JSmile.baseUrl+'/sys_dictionary/findDictByCode?dictCode=DT01',
    valueField:'dictValue',
    textField:'dictName',
    width:200,
    editable:false,
    required:true
});
$('#parentId').combotree({
	method: 'get',
	editable:false,
	lines:true,
	width:200,
    url: JSmile.baseUrl+'/sys_dept/findAll'	,
    loadFilter:function(data,parent){
    	return JSmile.convert(data,{textField:"deptName"});
    }
});
</script>